<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>选择 或 创建用户</title>
</head>
<body>
<form method="post">
	<input name="t" value="2" type="hidden">
	新用户
	<input name="uname">
	<input type="submit">
</form>
<br /><br />
<select size="50" style="width: 280px;" onchange="top.location.href=top.location.href.split('?')[0]+'?uid='+this.value+'&t=1';">
	<optgroup label="选择用户">
	<?php
	foreach($users as $u) {
		echo "<option value=\"{$u['uid']}\">{$u['name']}</option>";
	}
	?>
	</optgroup>
</select>
</body>
</html>